# -*- ruby -*-

desc "run specs"
task :spec do
  spec_files = Dir['spec/*_spec.rb'].join(" ")
  sh "spec --color #{spec_files}"
end

desc "compile treetop syntax files"
task :treetop do
  syntax_files = Dir['lib/kscheme/*.treetop'].join(" ")
  sh "tt #{syntax_files}"
end

desc "fire the repl"
task :repl do
  sh "ruby -I lib bin/kscheme"
end

desc 'detault task is spec'
task :default => :spec
